﻿Imports DAO
Imports DTO
Public Class NhanVienBUS
    Dim nvDAO As New DAO.DAONhanVien
    Public Function LoadNV() As DataTable
        Return nvDAO.LoadNV()
    End Function
    Public Function LoadNV_MANV(ByVal _ma As String) As DataTable
        Return nvDAO.LoadNV_MaNV(_ma)
    End Function
    Public Sub AddNV(ByVal _nv As DTO.DTONhanVien)
        nvDAO.AddNV(_nv)
    End Sub
    Public Sub UpdateNV(ByVal _nv As DTO.DTONhanVien)
        nvDAO.UpdateNV(_nv)
    End Sub
    Public Sub DelNV(ByVal _nv As DTO.DTONhanVien)
        nvDAO.DelNV(_nv)
    End Sub
    Public Sub NVCu(ByVal _nv As DTO.DTONhanVien)
        nvDAO.NVCu(_nv)
    End Sub
    Public Function LoadListNVTrucBUS() As List(Of DTONhanVien)
        Return nvDAO.LoadListNVTrucDAO()
    End Function
    Public Function LoadTableNVTrucBUS() As DataTable
        Return nvDAO.LoadTableNVTrucDAO()
    End Function

    Public Function LayThongTinNhanVienBUS(ByVal _maNV As Integer) As DTONhanVien
        Return nvDAO.LayThongTinNhanVienDAO(_maNV)
    End Function

End Class
